#!/bin/sh
# - sc_vsyscall32
# - sc_exception_trace
# - sc_kprobes_optimization
# - sc_aio_max_nr
# - sc_aio_nr
# - sc_dentry_state
# - sc_dir_notify_enable
# - sc_file_max
# - sc_file_nr
# - sc_inode_nr
# - sc_inode_state
# - sc_lease_break_time
# - sc_leases_enable
# - sc_mount_max
# - sc_nr_open
# - sc_overflowgid
# - sc_overflowuid
# - sc_pipe_max_size
# - sc_pipe_user_pages_hard
# - sc_pipe_user_pages_soft
# - sc_protected_hardlinks
# - sc_protected_symlinks
# - sc_suid_dumpable
# - sc_acct
# - sc_acpi_video_flags
# - sc_auto_msgmni
# - sc_bootloader_type
# - sc_bootloader_version
# - sc_cad_pid
# - sc_cap_last_cap
# - sc_core_pattern
# - sc_core_pipe_limit
# - sc_core_uses_pid
# - sc_ctrl_alt_del
# - sc_dmesg_restrict
# - sc_domainname
# - sc_ftrace_dump_on_oops
# - sc_ftrace_enabled
# - sc_hardlockup_all_cpu_backtrace
# - sc_hardlockup_panic
# - sc_hostname
# - sc_hotplug
# - sc_io_delay_type
# - sc_kexec_load_disabled
# - sc_kptr_restrict
# - sc_kstack_depth_to_print
# - sc_latencytop
# - sc_max_lock_depth
# - sc_modprobe
# - sc_modules_disabled
# - sc_msgmax
# - sc_msgmnb
# - sc_msgmni
# - sc_ngroups_max
# - sc_nmi_watchdog
# - sc_numa_balancing
# - sc_numa_balancing_scan_delay_ms
# - sc_numa_balancing_scan_period_max_ms
# - sc_numa_balancing_scan_period_min_ms
# - sc_numa_balancing_scan_size_mb
# - sc_osrelease
# - sc_ostype
# - sc_overflowgid
# - sc_overflowuid
# - sc_panic
# - sc_panic_on_io_nmi
# - sc_panic_on_oops
# - sc_panic_on_rcu_stall
# - sc_panic_on_stackoverflow
# - sc_panic_on_unrecovered_nmi
# - sc_panic_on_warn
# - sc_perf_cpu_time_max_percent
# - sc_perf_event_max_contexts_per_stack
# - sc_perf_event_max_sample_rate
# - sc_perf_event_max_stack
# - sc_perf_event_mlock_kb
# - sc_perf_event_paranoid
# - sc_pid_max
# - sc_poweroff_cmd
# - sc_print_fatal_signals
# - sc_printk
# - sc_printk_delay
# - sc_printk_devkmsg
# - sc_printk_ratelimit
# - sc_printk_ratelimit_burst
# - sc_randomize_va_space
# - sc_real_root_dev
# - sc_sched_autogroup_enabled
# - sc_sched_cfs_bandwidth_slice_us
# - sc_sched_child_runs_first
# - sc_sched_latency_ns
# - sc_sched_migration_cost_ns
# - sc_sched_min_granularity_ns
# - sc_sched_nr_migrate
# - sc_sched_rr_timeslice_ms
# - sc_sched_rt_period_us
# - sc_sched_rt_runtime_us
# - sc_sched_schedstats
# - sc_sched_shares_window_ns
# - sc_sched_time_avg_ms
# - sc_sched_tunable_scaling
# - sc_sched_wakeup_granularity_ns
# - sc_sem
# - sc_shm_rmid_forced
# - sc_shmall
# - sc_shmmax
# - sc_shmmni
# - sc_soft_watchdog
# - sc_softlockup_all_cpu_backtrace
# - sc_softlockup_panic
# - sc_stack_tracer_enabled
# - sc_sysctl_writes_strict
# - sc_sysrq
# - sc_tainted
# - sc_threads_max
# - sc_timer_migration
# - sc_traceoff_on_warning
# - sc_tracepoint_printk
# - sc_unknown_nmi_panic
# - sc_version
# - sc_watchdog
# - sc_watchdog_cpumask
# - sc_watchdog_thresh
# - sc_max_resvport
# - sc_min_resvport
# - sc_nfs_debug
# - sc_nfsd_debug
# - sc_nlm_debug
# - sc_rpc_debug
# - sc_tcp_fin_timeout
# - sc_tcp_max_slot_table_entries
# - sc_tcp_slot_table_entries
# - sc_transports
# - sc_udp_slot_table_entries
# - sc_max_cgroup_namespaces
# - sc_max_ipc_namespaces
# - sc_max_mnt_namespaces
# - sc_max_net_namespaces
# - sc_max_pid_namespaces
# - sc_max_user_namespaces
# - sc_max_uts_namespaces
# - sc_admin_reserve_kbytes
# - sc_block_dump
# - sc_compact_memory
# - sc_compact_unevictable_allowed
# - sc_dirty_background_bytes
# - sc_dirty_background_ratio
# - sc_dirty_bytes
# - sc_dirty_expire_centisecs
# - sc_dirty_ratio
# - sc_dirty_writeback_centisecs
# - sc_dirtytime_expire_seconds
# - sc_drop_caches
# - sc_extfrag_threshold
# - sc_hugepages_treat_as_movable
# - sc_hugetlb_shm_group
# - sc_laptop_mode
# - sc_legacy_va_layout
# - sc_lowmem_reserve_ratio
# - sc_max_map_count
# - sc_memory_failure_early_kill
# - sc_memory_failure_recovery
# - sc_min_free_kbytes
# - sc_min_slab_ratio
# - sc_min_unmapped_ratio
# - sc_mmap_min_addr
# - sc_mmap_rnd_bits
# - sc_mmap_rnd_compat_bits
# - sc_nr_hugepages
# - sc_nr_hugepages_mempolicy
# - sc_nr_overcommit_hugepages
# - sc_nr_pdflush_threads
# - sc_numa_zonelist_order
# - sc_oom_dump_tasks
# - sc_oom_kill_allocating_task
# - sc_overcommit_kbytes
# - sc_overcommit_memory
# - sc_overcommit_ratio
# - sc_page_cluster
# - sc_panic_on_oom
# - sc_percpu_pagelist_fraction
# - sc_stat_interval
# - sc_stat_refresh
# - sc_swappiness
# - sc_user_reserve_kbytes
# - sc_vfs_cache_pressure
# - sc_watermark_scale_factor
# - sc_zone_reclaim_mode
# - sc_somaxconn
# - sc_promotion_ratelimit_mbytes_per_sec
# - sc_demotion_ratelimit_mbytes_per_sec
# - sc_hot_threshold_mbytes
# - sc_cold_threshold_mbytes
# - sc_drop_threshold_mbytes
# - sc_ipv4_tcp_tw_reuse
# - sc_ipv4_tcp_keepalive_time
# - sc_ipv4_tcp_fin_timeout
# - sc_ipv4_tcp_max_tw_buckets
# - sc_ipv4_tcp_max_syn_backlog
# - sc_ipv4_ip_local_port_range
# - sc_netdev_max_backlog
# - sc_rmem_max
# - sc_wmem_max
# - sc_ipv4_tcp_rmem
# - sc_ipv4_tcp_wmem
# - sc_sched_features

. $LKP_SRC/lib/reproduce-log.sh
. $LKP_SRC/lib/env.sh
is_docker && exit

[ -n "$sc_vsyscall32" ] && log_eval "echo '$sc_vsyscall32' > '/proc/sys/abi/vsyscall32'"
[ -n "$sc_exception_trace" ] && log_eval "echo '$sc_exception_trace' > '/proc/sys/debug/exception-trace'"
[ -n "$sc_kprobes_optimization" ] && log_eval "echo '$sc_kprobes_optimization' > '/proc/sys/debug/kprobes-optimization'"
[ -n "$sc_aio_max_nr" ] && log_eval "echo '$sc_aio_max_nr' > '/proc/sys/fs/aio-max-nr'"
[ -n "$sc_aio_nr" ] && log_eval "echo '$sc_aio_nr' > '/proc/sys/fs/aio-nr'"
[ -n "$sc_dentry_state" ] && log_eval "echo '$sc_dentry_state' > '/proc/sys/fs/dentry-state'"
[ -n "$sc_dir_notify_enable" ] && log_eval "echo '$sc_dir_notify_enable' > '/proc/sys/fs/dir-notify-enable'"
[ -n "$sc_file_max" ] && log_eval "echo '$sc_file_max' > '/proc/sys/fs/file-max'"
[ -n "$sc_file_nr" ] && log_eval "echo '$sc_file_nr' > '/proc/sys/fs/file-nr'"
[ -n "$sc_inode_nr" ] && log_eval "echo '$sc_inode_nr' > '/proc/sys/fs/inode-nr'"
[ -n "$sc_inode_state" ] && log_eval "echo '$sc_inode_state' > '/proc/sys/fs/inode-state'"
[ -n "$sc_lease_break_time" ] && log_eval "echo '$sc_lease_break_time' > '/proc/sys/fs/lease-break-time'"
[ -n "$sc_leases_enable" ] && log_eval "echo '$sc_leases_enable' > '/proc/sys/fs/leases-enable'"
[ -n "$sc_mount_max" ] && log_eval "echo '$sc_mount_max' > '/proc/sys/fs/mount-max'"
[ -n "$sc_nr_open" ] && log_eval "echo '$sc_nr_open' > '/proc/sys/fs/nr_open'"
[ -n "$sc_overflowgid" ] && log_eval "echo '$sc_overflowgid' > '/proc/sys/fs/overflowgid'"
[ -n "$sc_overflowuid" ] && log_eval "echo '$sc_overflowuid' > '/proc/sys/fs/overflowuid'"
[ -n "$sc_pipe_max_size" ] && log_eval "echo '$sc_pipe_max_size' > '/proc/sys/fs/pipe-max-size'"
[ -n "$sc_pipe_user_pages_hard" ] && log_eval "echo '$sc_pipe_user_pages_hard' > '/proc/sys/fs/pipe-user-pages-hard'"
[ -n "$sc_pipe_user_pages_soft" ] && log_eval "echo '$sc_pipe_user_pages_soft' > '/proc/sys/fs/pipe-user-pages-soft'"
[ -n "$sc_protected_hardlinks" ] && log_eval "echo '$sc_protected_hardlinks' > '/proc/sys/fs/protected_hardlinks'"
[ -n "$sc_protected_symlinks" ] && log_eval "echo '$sc_protected_symlinks' > '/proc/sys/fs/protected_symlinks'"
[ -n "$sc_suid_dumpable" ] && log_eval "echo '$sc_suid_dumpable' > '/proc/sys/fs/suid_dumpable'"
[ -n "$sc_acct" ] && log_eval "echo '$sc_acct' > '/proc/sys/kernel/acct'"
[ -n "$sc_acpi_video_flags" ] && log_eval "echo '$sc_acpi_video_flags' > '/proc/sys/kernel/acpi_video_flags'"
[ -n "$sc_auto_msgmni" ] && log_eval "echo '$sc_auto_msgmni' > '/proc/sys/kernel/auto_msgmni'"
[ -n "$sc_bootloader_type" ] && log_eval "echo '$sc_bootloader_type' > '/proc/sys/kernel/bootloader_type'"
[ -n "$sc_bootloader_version" ] && log_eval "echo '$sc_bootloader_version' > '/proc/sys/kernel/bootloader_version'"
[ -n "$sc_cad_pid" ] && log_eval "echo '$sc_cad_pid' > '/proc/sys/kernel/cad_pid'"
[ -n "$sc_cap_last_cap" ] && log_eval "echo '$sc_cap_last_cap' > '/proc/sys/kernel/cap_last_cap'"
[ -n "$sc_core_pattern" ] && log_eval "echo '$sc_core_pattern' > '/proc/sys/kernel/core_pattern'"
[ -n "$sc_core_pipe_limit" ] && log_eval "echo '$sc_core_pipe_limit' > '/proc/sys/kernel/core_pipe_limit'"
[ -n "$sc_core_uses_pid" ] && log_eval "echo '$sc_core_uses_pid' > '/proc/sys/kernel/core_uses_pid'"
[ -n "$sc_ctrl_alt_del" ] && log_eval "echo '$sc_ctrl_alt_del' > '/proc/sys/kernel/ctrl-alt-del'"
[ -n "$sc_dmesg_restrict" ] && log_eval "echo '$sc_dmesg_restrict' > '/proc/sys/kernel/dmesg_restrict'"
[ -n "$sc_domainname" ] && log_eval "echo '$sc_domainname' > '/proc/sys/kernel/domainname'"
[ -n "$sc_ftrace_dump_on_oops" ] && log_eval "echo '$sc_ftrace_dump_on_oops' > '/proc/sys/kernel/ftrace_dump_on_oops'"
[ -n "$sc_ftrace_enabled" ] && log_eval "echo '$sc_ftrace_enabled' > '/proc/sys/kernel/ftrace_enabled'"
[ -n "$sc_hardlockup_all_cpu_backtrace" ] && log_eval "echo '$sc_hardlockup_all_cpu_backtrace' > '/proc/sys/kernel/hardlockup_all_cpu_backtrace'"
[ -n "$sc_hardlockup_panic" ] && log_eval "echo '$sc_hardlockup_panic' > '/proc/sys/kernel/hardlockup_panic'"
[ -n "$sc_hostname" ] && log_eval "echo '$sc_hostname' > '/proc/sys/kernel/hostname'"
[ -n "$sc_hotplug" ] && log_eval "echo '$sc_hotplug' > '/proc/sys/kernel/hotplug'"
[ -n "$sc_io_delay_type" ] && log_eval "echo '$sc_io_delay_type' > '/proc/sys/kernel/io_delay_type'"
[ -n "$sc_kexec_load_disabled" ] && log_eval "echo '$sc_kexec_load_disabled' > '/proc/sys/kernel/kexec_load_disabled'"
[ -n "$sc_kptr_restrict" ] && log_eval "echo '$sc_kptr_restrict' > '/proc/sys/kernel/kptr_restrict'"
[ -n "$sc_kstack_depth_to_print" ] && log_eval "echo '$sc_kstack_depth_to_print' > '/proc/sys/kernel/kstack_depth_to_print'"
[ -n "$sc_latencytop" ] && log_eval "echo '$sc_latencytop' > '/proc/sys/kernel/latencytop'"
[ -n "$sc_max_lock_depth" ] && log_eval "echo '$sc_max_lock_depth' > '/proc/sys/kernel/max_lock_depth'"
[ -n "$sc_modprobe" ] && log_eval "echo '$sc_modprobe' > '/proc/sys/kernel/modprobe'"
[ -n "$sc_modules_disabled" ] && log_eval "echo '$sc_modules_disabled' > '/proc/sys/kernel/modules_disabled'"
[ -n "$sc_msgmax" ] && log_eval "echo '$sc_msgmax' > '/proc/sys/kernel/msgmax'"
[ -n "$sc_msgmnb" ] && log_eval "echo '$sc_msgmnb' > '/proc/sys/kernel/msgmnb'"
[ -n "$sc_msgmni" ] && log_eval "echo '$sc_msgmni' > '/proc/sys/kernel/msgmni'"
[ -n "$sc_ngroups_max" ] && log_eval "echo '$sc_ngroups_max' > '/proc/sys/kernel/ngroups_max'"
[ -n "$sc_nmi_watchdog" ] && log_eval "echo '$sc_nmi_watchdog' > '/proc/sys/kernel/nmi_watchdog'"
[ -n "$sc_numa_balancing" ] && log_eval "echo '$sc_numa_balancing' > '/proc/sys/kernel/numa_balancing'"
[ -n "$sc_numa_balancing_scan_delay_ms" ] && log_eval "echo '$sc_numa_balancing_scan_delay_ms' > '/proc/sys/kernel/numa_balancing_scan_delay_ms'"
[ -n "$sc_numa_balancing_scan_period_max_ms" ] && log_eval "echo '$sc_numa_balancing_scan_period_max_ms' > '/proc/sys/kernel/numa_balancing_scan_period_max_ms'"
[ -n "$sc_numa_balancing_scan_period_min_ms" ] && log_eval "echo '$sc_numa_balancing_scan_period_min_ms' > '/proc/sys/kernel/numa_balancing_scan_period_min_ms'"
[ -n "$sc_numa_balancing_scan_size_mb" ] && log_eval "echo '$sc_numa_balancing_scan_size_mb' > '/proc/sys/kernel/numa_balancing_scan_size_mb'"
[ -n "$sc_osrelease" ] && log_eval "echo '$sc_osrelease' > '/proc/sys/kernel/osrelease'"
[ -n "$sc_ostype" ] && log_eval "echo '$sc_ostype' > '/proc/sys/kernel/ostype'"
[ -n "$sc_overflowgid" ] && log_eval "echo '$sc_overflowgid' > '/proc/sys/kernel/overflowgid'"
[ -n "$sc_overflowuid" ] && log_eval "echo '$sc_overflowuid' > '/proc/sys/kernel/overflowuid'"
[ -n "$sc_panic" ] && log_eval "echo '$sc_panic' > '/proc/sys/kernel/panic'"
[ -n "$sc_panic_on_io_nmi" ] && log_eval "echo '$sc_panic_on_io_nmi' > '/proc/sys/kernel/panic_on_io_nmi'"
[ -n "$sc_panic_on_oops" ] && log_eval "echo '$sc_panic_on_oops' > '/proc/sys/kernel/panic_on_oops'"
[ -n "$sc_panic_on_rcu_stall" ] && log_eval "echo '$sc_panic_on_rcu_stall' > '/proc/sys/kernel/panic_on_rcu_stall'"
[ -n "$sc_panic_on_stackoverflow" ] && log_eval "echo '$sc_panic_on_stackoverflow' > '/proc/sys/kernel/panic_on_stackoverflow'"
[ -n "$sc_panic_on_unrecovered_nmi" ] && log_eval "echo '$sc_panic_on_unrecovered_nmi' > '/proc/sys/kernel/panic_on_unrecovered_nmi'"
[ -n "$sc_panic_on_warn" ] && log_eval "echo '$sc_panic_on_warn' > '/proc/sys/kernel/panic_on_warn'"
[ -n "$sc_perf_cpu_time_max_percent" ] && log_eval "echo '$sc_perf_cpu_time_max_percent' > '/proc/sys/kernel/perf_cpu_time_max_percent'"
[ -n "$sc_perf_event_max_contexts_per_stack" ] && log_eval "echo '$sc_perf_event_max_contexts_per_stack' > '/proc/sys/kernel/perf_event_max_contexts_per_stack'"
[ -n "$sc_perf_event_max_sample_rate" ] && log_eval "echo '$sc_perf_event_max_sample_rate' > '/proc/sys/kernel/perf_event_max_sample_rate'"
[ -n "$sc_perf_event_max_stack" ] && log_eval "echo '$sc_perf_event_max_stack' > '/proc/sys/kernel/perf_event_max_stack'"
[ -n "$sc_perf_event_mlock_kb" ] && log_eval "echo '$sc_perf_event_mlock_kb' > '/proc/sys/kernel/perf_event_mlock_kb'"
[ -n "$sc_perf_event_paranoid" ] && log_eval "echo '$sc_perf_event_paranoid' > '/proc/sys/kernel/perf_event_paranoid'"
[ -n "$sc_pid_max" ] && log_eval "echo '$sc_pid_max' > '/proc/sys/kernel/pid_max'"
[ -n "$sc_poweroff_cmd" ] && log_eval "echo '$sc_poweroff_cmd' > '/proc/sys/kernel/poweroff_cmd'"
[ -n "$sc_print_fatal_signals" ] && log_eval "echo '$sc_print_fatal_signals' > '/proc/sys/kernel/print-fatal-signals'"
[ -n "$sc_printk" ] && log_eval "echo '$sc_printk' > '/proc/sys/kernel/printk'"
[ -n "$sc_printk_delay" ] && log_eval "echo '$sc_printk_delay' > '/proc/sys/kernel/printk_delay'"
[ -n "$sc_printk_devkmsg" ] && log_eval "echo '$sc_printk_devkmsg' > '/proc/sys/kernel/printk_devkmsg'"
[ -n "$sc_printk_ratelimit" ] && log_eval "echo '$sc_printk_ratelimit' > '/proc/sys/kernel/printk_ratelimit'"
[ -n "$sc_printk_ratelimit_burst" ] && log_eval "echo '$sc_printk_ratelimit_burst' > '/proc/sys/kernel/printk_ratelimit_burst'"
[ -n "$sc_randomize_va_space" ] && log_eval "echo '$sc_randomize_va_space' > '/proc/sys/kernel/randomize_va_space'"
[ -n "$sc_real_root_dev" ] && log_eval "echo '$sc_real_root_dev' > '/proc/sys/kernel/real-root-dev'"
[ -n "$sc_sched_autogroup_enabled" ] && log_eval "echo '$sc_sched_autogroup_enabled' > '/proc/sys/kernel/sched_autogroup_enabled'"
[ -n "$sc_sched_cfs_bandwidth_slice_us" ] && log_eval "echo '$sc_sched_cfs_bandwidth_slice_us' > '/proc/sys/kernel/sched_cfs_bandwidth_slice_us'"
[ -n "$sc_sched_child_runs_first" ] && log_eval "echo '$sc_sched_child_runs_first' > '/proc/sys/kernel/sched_child_runs_first'"
[ -n "$sc_sched_latency_ns" ] && log_eval "echo '$sc_sched_latency_ns' > '/proc/sys/kernel/sched_latency_ns'"
[ -n "$sc_sched_migration_cost_ns" ] && log_eval "echo '$sc_sched_migration_cost_ns' > '/proc/sys/kernel/sched_migration_cost_ns'"
[ -n "$sc_sched_min_granularity_ns" ] && log_eval "echo '$sc_sched_min_granularity_ns' > '/proc/sys/kernel/sched_min_granularity_ns'"
[ -n "$sc_sched_nr_migrate" ] && log_eval "echo '$sc_sched_nr_migrate' > '/proc/sys/kernel/sched_nr_migrate'"
[ -n "$sc_sched_rr_timeslice_ms" ] && log_eval "echo '$sc_sched_rr_timeslice_ms' > '/proc/sys/kernel/sched_rr_timeslice_ms'"
[ -n "$sc_sched_rt_period_us" ] && log_eval "echo '$sc_sched_rt_period_us' > '/proc/sys/kernel/sched_rt_period_us'"
[ -n "$sc_sched_rt_runtime_us" ] && log_eval "echo '$sc_sched_rt_runtime_us' > '/proc/sys/kernel/sched_rt_runtime_us'"
[ -n "$sc_sched_schedstats" ] && log_eval "echo '$sc_sched_schedstats' > '/proc/sys/kernel/sched_schedstats'"
[ -n "$sc_sched_shares_window_ns" ] && log_eval "echo '$sc_sched_shares_window_ns' > '/proc/sys/kernel/sched_shares_window_ns'"
[ -n "$sc_sched_time_avg_ms" ] && log_eval "echo '$sc_sched_time_avg_ms' > '/proc/sys/kernel/sched_time_avg_ms'"
[ -n "$sc_sched_tunable_scaling" ] && log_eval "echo '$sc_sched_tunable_scaling' > '/proc/sys/kernel/sched_tunable_scaling'"
[ -n "$sc_sched_wakeup_granularity_ns" ] && log_eval "echo '$sc_sched_wakeup_granularity_ns' > '/proc/sys/kernel/sched_wakeup_granularity_ns'"
[ -n "$sc_sem" ] && log_eval "echo '$sc_sem' > '/proc/sys/kernel/sem'"
[ -n "$sc_shm_rmid_forced" ] && log_eval "echo '$sc_shm_rmid_forced' > '/proc/sys/kernel/shm_rmid_forced'"
[ -n "$sc_shmall" ] && log_eval "echo '$sc_shmall' > '/proc/sys/kernel/shmall'"
[ -n "$sc_shmmax" ] && log_eval "echo '$sc_shmmax' > '/proc/sys/kernel/shmmax'"
[ -n "$sc_shmmni" ] && log_eval "echo '$sc_shmmni' > '/proc/sys/kernel/shmmni'"
[ -n "$sc_soft_watchdog" ] && log_eval "echo '$sc_soft_watchdog' > '/proc/sys/kernel/soft_watchdog'"
[ -n "$sc_softlockup_all_cpu_backtrace" ] && log_eval "echo '$sc_softlockup_all_cpu_backtrace' > '/proc/sys/kernel/softlockup_all_cpu_backtrace'"
[ -n "$sc_softlockup_panic" ] && log_eval "echo '$sc_softlockup_panic' > '/proc/sys/kernel/softlockup_panic'"
[ -n "$sc_stack_tracer_enabled" ] && log_eval "echo '$sc_stack_tracer_enabled' > '/proc/sys/kernel/stack_tracer_enabled'"
[ -n "$sc_sysctl_writes_strict" ] && log_eval "echo '$sc_sysctl_writes_strict' > '/proc/sys/kernel/sysctl_writes_strict'"
[ -n "$sc_sysrq" ] && log_eval "echo '$sc_sysrq' > '/proc/sys/kernel/sysrq'"
[ -n "$sc_tainted" ] && log_eval "echo '$sc_tainted' > '/proc/sys/kernel/tainted'"
[ -n "$sc_threads_max" ] && log_eval "echo '$sc_threads_max' > '/proc/sys/kernel/threads-max'"
[ -n "$sc_timer_migration" ] && log_eval "echo '$sc_timer_migration' > '/proc/sys/kernel/timer_migration'"
[ -n "$sc_traceoff_on_warning" ] && log_eval "echo '$sc_traceoff_on_warning' > '/proc/sys/kernel/traceoff_on_warning'"
[ -n "$sc_tracepoint_printk" ] && log_eval "echo '$sc_tracepoint_printk' > '/proc/sys/kernel/tracepoint_printk'"
[ -n "$sc_unknown_nmi_panic" ] && log_eval "echo '$sc_unknown_nmi_panic' > '/proc/sys/kernel/unknown_nmi_panic'"
[ -n "$sc_version" ] && log_eval "echo '$sc_version' > '/proc/sys/kernel/version'"
[ -n "$sc_watchdog" ] && log_eval "echo '$sc_watchdog' > '/proc/sys/kernel/watchdog'"
[ -n "$sc_watchdog_cpumask" ] && log_eval "echo '$sc_watchdog_cpumask' > '/proc/sys/kernel/watchdog_cpumask'"
[ -n "$sc_watchdog_thresh" ] && log_eval "echo '$sc_watchdog_thresh' > '/proc/sys/kernel/watchdog_thresh'"
[ -n "$sc_max_resvport" ] && log_eval "echo '$sc_max_resvport' > '/proc/sys/sunrpc/max_resvport'"
[ -n "$sc_min_resvport" ] && log_eval "echo '$sc_min_resvport' > '/proc/sys/sunrpc/min_resvport'"
[ -n "$sc_nfs_debug" ] && log_eval "echo '$sc_nfs_debug' > '/proc/sys/sunrpc/nfs_debug'"
[ -n "$sc_nfsd_debug" ] && log_eval "echo '$sc_nfsd_debug' > '/proc/sys/sunrpc/nfsd_debug'"
[ -n "$sc_nlm_debug" ] && log_eval "echo '$sc_nlm_debug' > '/proc/sys/sunrpc/nlm_debug'"
[ -n "$sc_rpc_debug" ] && log_eval "echo '$sc_rpc_debug' > '/proc/sys/sunrpc/rpc_debug'"
[ -n "$sc_tcp_fin_timeout" ] && log_eval "echo '$sc_tcp_fin_timeout' > '/proc/sys/sunrpc/tcp_fin_timeout'"
[ -n "$sc_tcp_max_slot_table_entries" ] && log_eval "echo '$sc_tcp_max_slot_table_entries' > '/proc/sys/sunrpc/tcp_max_slot_table_entries'"
[ -n "$sc_tcp_slot_table_entries" ] && log_eval "echo '$sc_tcp_slot_table_entries' > '/proc/sys/sunrpc/tcp_slot_table_entries'"
[ -n "$sc_transports" ] && log_eval "echo '$sc_transports' > '/proc/sys/sunrpc/transports'"
[ -n "$sc_udp_slot_table_entries" ] && log_eval "echo '$sc_udp_slot_table_entries' > '/proc/sys/sunrpc/udp_slot_table_entries'"
[ -n "$sc_max_cgroup_namespaces" ] && log_eval "echo '$sc_max_cgroup_namespaces' > '/proc/sys/user/max_cgroup_namespaces'"
[ -n "$sc_max_ipc_namespaces" ] && log_eval "echo '$sc_max_ipc_namespaces' > '/proc/sys/user/max_ipc_namespaces'"
[ -n "$sc_max_mnt_namespaces" ] && log_eval "echo '$sc_max_mnt_namespaces' > '/proc/sys/user/max_mnt_namespaces'"
[ -n "$sc_max_net_namespaces" ] && log_eval "echo '$sc_max_net_namespaces' > '/proc/sys/user/max_net_namespaces'"
[ -n "$sc_max_pid_namespaces" ] && log_eval "echo '$sc_max_pid_namespaces' > '/proc/sys/user/max_pid_namespaces'"
[ -n "$sc_max_user_namespaces" ] && log_eval "echo '$sc_max_user_namespaces' > '/proc/sys/user/max_user_namespaces'"
[ -n "$sc_max_uts_namespaces" ] && log_eval "echo '$sc_max_uts_namespaces' > '/proc/sys/user/max_uts_namespaces'"
[ -n "$sc_admin_reserve_kbytes" ] && log_eval "echo '$sc_admin_reserve_kbytes' > '/proc/sys/vm/admin_reserve_kbytes'"
[ -n "$sc_block_dump" ] && log_eval "echo '$sc_block_dump' > '/proc/sys/vm/block_dump'"
[ -n "$sc_compact_memory" ] && log_eval "echo '$sc_compact_memory' > '/proc/sys/vm/compact_memory'"
[ -n "$sc_compact_unevictable_allowed" ] && log_eval "echo '$sc_compact_unevictable_allowed' > '/proc/sys/vm/compact_unevictable_allowed'"
[ -n "$sc_dirty_background_bytes" ] && log_eval "echo '$sc_dirty_background_bytes' > '/proc/sys/vm/dirty_background_bytes'"
[ -n "$sc_dirty_background_ratio" ] && log_eval "echo '$sc_dirty_background_ratio' > '/proc/sys/vm/dirty_background_ratio'"
[ -n "$sc_dirty_bytes" ] && log_eval "echo '$sc_dirty_bytes' > '/proc/sys/vm/dirty_bytes'"
[ -n "$sc_dirty_expire_centisecs" ] && log_eval "echo '$sc_dirty_expire_centisecs' > '/proc/sys/vm/dirty_expire_centisecs'"
[ -n "$sc_dirty_ratio" ] && log_eval "echo '$sc_dirty_ratio' > '/proc/sys/vm/dirty_ratio'"
[ -n "$sc_dirty_writeback_centisecs" ] && log_eval "echo '$sc_dirty_writeback_centisecs' > '/proc/sys/vm/dirty_writeback_centisecs'"
[ -n "$sc_dirtytime_expire_seconds" ] && log_eval "echo '$sc_dirtytime_expire_seconds' > '/proc/sys/vm/dirtytime_expire_seconds'"
[ -n "$sc_drop_caches" ] && log_eval "echo '$sc_drop_caches' > '/proc/sys/vm/drop_caches'"
[ -n "$sc_extfrag_threshold" ] && log_eval "echo '$sc_extfrag_threshold' > '/proc/sys/vm/extfrag_threshold'"
[ -n "$sc_hugepages_treat_as_movable" ] && log_eval "echo '$sc_hugepages_treat_as_movable' > '/proc/sys/vm/hugepages_treat_as_movable'"
[ -n "$sc_hugetlb_shm_group" ] && log_eval "echo '$sc_hugetlb_shm_group' > '/proc/sys/vm/hugetlb_shm_group'"
[ -n "$sc_laptop_mode" ] && log_eval "echo '$sc_laptop_mode' > '/proc/sys/vm/laptop_mode'"
[ -n "$sc_legacy_va_layout" ] && log_eval "echo '$sc_legacy_va_layout' > '/proc/sys/vm/legacy_va_layout'"
[ -n "$sc_lowmem_reserve_ratio" ] && log_eval "echo '$sc_lowmem_reserve_ratio' > '/proc/sys/vm/lowmem_reserve_ratio'"
[ -n "$sc_max_map_count" ] && log_eval "echo '$sc_max_map_count' > '/proc/sys/vm/max_map_count'"
[ -n "$sc_memory_failure_early_kill" ] && log_eval "echo '$sc_memory_failure_early_kill' > '/proc/sys/vm/memory_failure_early_kill'"
[ -n "$sc_memory_failure_recovery" ] && log_eval "echo '$sc_memory_failure_recovery' > '/proc/sys/vm/memory_failure_recovery'"
[ -n "$sc_min_free_kbytes" ] && log_eval "echo '$sc_min_free_kbytes' > '/proc/sys/vm/min_free_kbytes'"
[ -n "$sc_min_slab_ratio" ] && log_eval "echo '$sc_min_slab_ratio' > '/proc/sys/vm/min_slab_ratio'"
[ -n "$sc_min_unmapped_ratio" ] && log_eval "echo '$sc_min_unmapped_ratio' > '/proc/sys/vm/min_unmapped_ratio'"
[ -n "$sc_mmap_min_addr" ] && log_eval "echo '$sc_mmap_min_addr' > '/proc/sys/vm/mmap_min_addr'"
[ -n "$sc_mmap_rnd_bits" ] && log_eval "echo '$sc_mmap_rnd_bits' > '/proc/sys/vm/mmap_rnd_bits'"
[ -n "$sc_mmap_rnd_compat_bits" ] && log_eval "echo '$sc_mmap_rnd_compat_bits' > '/proc/sys/vm/mmap_rnd_compat_bits'"
[ -n "$sc_nr_hugepages" ] && log_eval "echo '$sc_nr_hugepages' > '/proc/sys/vm/nr_hugepages'"
[ -n "$sc_nr_hugepages_mempolicy" ] && log_eval "echo '$sc_nr_hugepages_mempolicy' > '/proc/sys/vm/nr_hugepages_mempolicy'"
[ -n "$sc_nr_overcommit_hugepages" ] && log_eval "echo '$sc_nr_overcommit_hugepages' > '/proc/sys/vm/nr_overcommit_hugepages'"
[ -n "$sc_nr_pdflush_threads" ] && log_eval "echo '$sc_nr_pdflush_threads' > '/proc/sys/vm/nr_pdflush_threads'"
[ -n "$sc_numa_zonelist_order" ] && log_eval "echo '$sc_numa_zonelist_order' > '/proc/sys/vm/numa_zonelist_order'"
[ -n "$sc_oom_dump_tasks" ] && log_eval "echo '$sc_oom_dump_tasks' > '/proc/sys/vm/oom_dump_tasks'"
[ -n "$sc_oom_kill_allocating_task" ] && log_eval "echo '$sc_oom_kill_allocating_task' > '/proc/sys/vm/oom_kill_allocating_task'"
[ -n "$sc_overcommit_kbytes" ] && log_eval "echo '$sc_overcommit_kbytes' > '/proc/sys/vm/overcommit_kbytes'"
[ -n "$sc_overcommit_memory" ] && log_eval "echo '$sc_overcommit_memory' > '/proc/sys/vm/overcommit_memory'"
[ -n "$sc_overcommit_ratio" ] && log_eval "echo '$sc_overcommit_ratio' > '/proc/sys/vm/overcommit_ratio'"
[ -n "$sc_page_cluster" ] && log_eval "echo '$sc_page_cluster' > '/proc/sys/vm/page-cluster'"
[ -n "$sc_panic_on_oom" ] && log_eval "echo '$sc_panic_on_oom' > '/proc/sys/vm/panic_on_oom'"
[ -n "$sc_percpu_pagelist_fraction" ] && log_eval "echo '$sc_percpu_pagelist_fraction' > '/proc/sys/vm/percpu_pagelist_fraction'"
[ -n "$sc_stat_interval" ] && log_eval "echo '$sc_stat_interval' > '/proc/sys/vm/stat_interval'"
[ -n "$sc_stat_refresh" ] && log_eval "echo '$sc_stat_refresh' > '/proc/sys/vm/stat_refresh'"
[ -n "$sc_swappiness" ] && log_eval "echo '$sc_swappiness' > '/proc/sys/vm/swappiness'"
[ -n "$sc_user_reserve_kbytes" ] && log_eval "echo '$sc_user_reserve_kbytes' > '/proc/sys/vm/user_reserve_kbytes'"
[ -n "$sc_vfs_cache_pressure" ] && log_eval "echo '$sc_vfs_cache_pressure' > '/proc/sys/vm/vfs_cache_pressure'"
[ -n "$sc_watermark_scale_factor" ] && log_eval "echo '$sc_watermark_scale_factor' > '/proc/sys/vm/watermark_scale_factor'"
[ -n "$sc_zone_reclaim_mode" ] && log_eval "echo '$sc_zone_reclaim_mode' > '/proc/sys/vm/zone_reclaim_mode'"
[ -n "$sc_somaxconn" ] && log_eval "echo '$sc_somaxconn' > '/proc/sys/net/core/somaxconn'"
[ -n "$sc_promotion_ratelimit_mbytes_per_sec" ] && log_eval "echo '$sc_promotion_ratelimit_mbytes_per_sec' > '/proc/sys/vm/promotion_ratelimit_mbytes_per_sec'"
[ -n "$sc_demotion_ratelimit_mbytes_per_sec" ] && log_eval "echo '$sc_demotion_ratelimit_mbytes_per_sec' > '/proc/sys/vm/demotion_ratelimit_mbytes_per_sec'"
[ -n "$sc_hot_threshold_mbytes" ] && log_eval "echo '$sc_hot_threshold_mbytes' > '/proc/sys/vm/hot_threshold_mbytes'"
[ -n "$sc_cold_threshold_mbytes" ] && log_eval "echo '$sc_cold_threshold_mbytes' > '/proc/sys/vm/cold_threshold_mbytes'"
[ -n "$sc_drop_threshold_mbytes" ] && log_eval "echo '$sc_drop_threshold_mbytes' > '/proc/sys/vm/drop_threshold_mbytes'"
[ -n "$sc_ipv4_tcp_tw_reuse" ] && log_eval "echo '$sc_ipv4_tcp_tw_reuse' > '/proc/sys/net/ipv4/tcp_tw_reuse'"
[ -n "$sc_ipv4_tcp_keepalive_time" ] && log_eval "echo '$sc_ipv4_tcp_keepalive_time' > '/proc/sys/net/ipv4/tcp_keepalive_time'"
[ -n "$sc_ipv4_tcp_fin_timeout" ] && log_eval "echo '$sc_ipv4_tcp_fin_timeout' > '/proc/sys/net/ipv4/tcp_fin_timeout'"
[ -n "$sc_ipv4_tcp_max_tw_buckets" ] && log_eval "echo '$sc_ipv4_tcp_max_tw_buckets' > '/proc/sys/net/ipv4/tcp_max_tw_buckets'"
[ -n "$sc_ipv4_tcp_max_syn_backlog" ] && log_eval "echo '$sc_ipv4_tcp_max_syn_backlog' > '/proc/sys/net/ipv4/tcp_max_syn_backlog'"
[ -n "$sc_ipv4_ip_local_port_range" ] && log_eval "echo '$sc_ipv4_ip_local_port_range' > '/proc/sys/net/ipv4/ip_local_port_range'"
[ -n "$sc_ipv4_tcp_rmem" ] && log_eval "echo '$sc_ipv4_tcp_rmem' > '/proc/sys/net/ipv4/tcp_rmem'"
[ -n "$sc_ipv4_tcp_wmem" ] && log_eval "echo '$sc_ipv4_tcp_wmem' > '/proc/sys/net/ipv4/tcp_wmem'"
[ -n "$sc_netdev_max_backlog" ] && log_eval "echo '$sc_netdev_max_backlog' > '/proc/sys/net/core/netdev_max_backlog'"
[ -n "$sc_rmem_max" ] && log_eval "echo '$sc_rmem_max' > '/proc/sys/net/core/rmem_max'"
[ -n "$sc_wmem_max" ] && log_eval "echo '$sc_wmem_max' > '/proc/sys/net/core/wmem_max'"
[ -n "$sc_sched_features" ] && log_eval "echo '$sc_sched_features' > '/sys/kernel/debug/sched_features'"

exit 0
